package demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class HelloWorld {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos = new FileOutputStream("fos.txt");
        try {
            fos.write(47);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        System.out.println("写出完毕");
        try {
            fos.close();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
